﻿#include<iostream>
#include <vector>

void printVector(std::vector<int>& v)
{
	for (std::vector<int>::iterator it = v.begin(); it != v.end(); ++it)
	{
		std::cout << *it << " ";
	}
	std::cout << '\n';
}



void test01()
{
	std::vector<int> v1;
	for (int i = 0; i < 10; ++i)
	{
		v1.push_back(i);
	}
	printVector(v1);

	
	std::vector<int> v2(v1.begin() + 1, v1.end());
	printVector(v2);

	std::vector<int> v3(6, 666);
	printVector(v3);

	std::vector<int> v4(v3);
	printVector(v4);
}




int main()
{
	test01();




	return 0;
}